package com.cz.modules.jxc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cz.common.utils.PageUtils;
import com.cz.modules.jxc.entity.JxcSaleOrderEntity;
import com.cz.modules.jxc.entity.JxcSellDetailsEntity;
import com.cz.modules.jxc.entity.JxcShopEntity;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * 销售流水账
 *
 * @author Cz
 * @email 
 * @date 2020-04-16 13:42:40
 */
public interface JxcSaleOrderService extends IService<JxcSaleOrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void getSellMasterByCode(String startDate) throws ParseException;

    JxcSaleOrderEntity xseTodayCount(String startTime);
    List<JxcSaleOrderEntity> xlChart(String startTime,String endTime,List<String> shopCodeList);
    List<JxcSaleOrderEntity> hour24Sale(String deptId);

    List<JxcSaleOrderEntity> hour24Salesvolume(String deptId);
    List<JxcSaleOrderEntity> realtimeorder();
    List<JxcSellDetailsEntity> detailist();
    List<JxcSellDetailsEntity> rllandprice();
    Map<String,List<JxcSaleOrderEntity>> salecllrll();
    Map<String,List> salerllhour(String startTime, String endTime);
    Map<String,List> salerllday(String startTime, String endTime);
    Map<String,List> salecllrllhour(String startTime, String endTime);
    Map<String,List> salecllrllday(String startTime, String endTime);
    List averagePricehour(String startTime, String endTime);
    List averagePriceday(String startTime, String endTime);
    List southAndNorthAveragePriceDay(List<JxcShopEntity> shopList,String startTime, String endTime);

    List<JxcSaleOrderEntity> hourTodaySalesvolume(String deptId, String type);

    List<JxcSaleOrderEntity> hourTodaySale(String deptId, String type);
    List salehour(String deptId, String startTime, String endTime);
    List saleday(String deptId, String startTime, String endTime);
    List shopSaleCount(String startTime, String endTime);

    JxcSaleOrderEntity xseCount(String startTime, String endTime, List<String> southShopList);
    Double orderCount(List<JxcShopEntity> shopList,String startTime,String endTime);
    List orderCountlist(List<JxcShopEntity> shopList,String startTime,String endTime);
    Integer orderSize(List<JxcShopEntity> shopList,String startTime,String endTime);
    List orderSizelist(List<JxcShopEntity> shopList,String startTime,String endTime);
    List proportionOfConsumers(String deptId,String startTime,String endTime);
    List orderChart(List<JxcShopEntity> shopList,String startTime,String endTime);
}

